package course.myfile;

import java.io.File;

public class MyFile3 {
    public static void main(String[] args) {
        File file = new File("D:\\Java\\HeimaProgramming\\a.txt");
        boolean result1 = file.isFile();
        boolean result2 = file.isDirectory();
        System.out.println(result1);
        System.out.println(result2);

        boolean result3 = file.exists();
        System.out.println(result3);
    }
}
